import express from 'express';
const router = express.Router();
import User from "../controller/v1/user";
const user = new User();


// 用户登录 注册 变更用户信息 相关接口
router.all('*', user.verify_jwt)

router.post('/send_email', user.send_email);
router.post('/login', user.login);
router.post('/user_create', user.user_create);
router.post('/retrieve_pwd', user.retrieve_pwd);

//登录后操作
router.post('/put_pwd', user.put_pwd);
router.post('/put_message', user.put_message);

export default router
